package com.hanggold.jfinal.springframework.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-09-29 16:34
 * @since 1.0.0
 **/
@Component
@Lazy(false)
public class Person {

    @Value("${smc.username.name}")
    private String username;

    public void say(String content) {
        System.out.printf("you say %s \n", content);
    }
}
